echo "test"| mailx -a "attachment/file.pdf" -r "bob@website.com (Bob the Man)" -s "test sub" -- otherperson@gmail.com